all:	thread_create thread_create2 thread_create2_join prime

thread_create:
	gcc -Wall -o thread_create thread_create.c -lpthread -g

thread_create2:
	gcc -Wall -o thread_create2 thread_create2.c -lpthread -g

thread_create2_join:
	gcc -Wall -o thread_create2_join thread_create2.c -lpthread -g -DTEST_JOIN

prime:
	gcc -Wall -o prime prime.c -lpthread -g

clean:
	rm -f thread_create
	rm -f thread_create2
	rm -f thread_create2_join
	rm -f prime
